import request from '@/utils/request'
import qs from 'qs'


 export function zset_zscan({key,cursor,match,size,page_size}) {
  return request({
    url: '/api/key/zset/zscan',
    method: 'post',
    timeout:100000,
    data: qs.stringify({
      key,cursor,match,size,page_size
    })
  })
}

export function zset_zrem({key,member}) {
  return request({
    url: '/api/key/zset/zrem',
    method: 'post',
    timeout:100000,
    data: qs.stringify({
      key,member
    })
  })
}

export function zset_zadd(key,cover,adds) {
  return request({
    url: '/api/key/zset/zadd',
    method: 'post',
    timeout:100000,
    data: qs.stringify({
      key,cover,
      adds: JSON.stringify(adds)
    })
  })
}